package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IScheduleDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.Schedule;
import com.ricchieri.service.interf.IScheduleService;

@Transactional(readOnly = true)
public class ScheduleService implements IScheduleService, Serializable {
	private static final long serialVersionUID = -3489407486536384839L;
	IScheduleDao scheduleDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<Schedule> getAllSchedule() {
		BasicFilter filter = new BasicFilter();
		return scheduleDao.getAllSchedule(filter);
	}

	public IScheduleDao getScheduleDao() {
		return scheduleDao;
	}

	public void setScheduleDao(IScheduleDao scheduleDao) {
		this.scheduleDao = scheduleDao;
	}
}
